import { memo } from 'react'
import { Button } from 'antd'
import { useNavigate } from 'react-router-dom'

const LoginPage = memo(() => {
  const navigate = useNavigate();
  return (
    <div>
      <h1>登录页</h1>
      <Button type='primary' onClick={() => {
        navigate('/')
      }}>登录成功</Button>
    </div>
  )
})

export default LoginPage